/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.example.netcracker.model;

import ru.example.netcracker.model.entity.Contact;
import ru.example.netcracker.model.entity.Notification;
import java.util.Date;
import java.util.List;
import ru.example.netcracker.model.entity.Alarm;

/**
 *
 * @author Nikolay
 */
public class TaskFactory {
    
    public static Contact createContact(String id, String name, String phoneNumber) {
        return new Contact(id, name, phoneNumber);
    }
    
    public static Notification createNotification(String id) {
        return new Notification(id);        
    }
    
    public static Notification createNotification(String id, String name, String description, Date date) {
        return new Notification(id, name, description, date);  
    }
    
    public static Notification createNotification(String id, String name, String description, Date date, List<Contact>contacts) {
        return new Notification(id, name, description, date, contacts);  
    }
    
    public static Alarm createAlarm(String id, String name, String path, Date date) {
        return new Alarm(id, name, path, date);  
    }
}
